package com.caiheng.api.entity.estate;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 物业经理接待信息对象 estate_chat
 *
 * @author ruoyi
 * @date 2022-08-16
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("estate_chat")
public class EstateChat implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 所属小区id
     */
    private Integer estateId;

    private String estateName;

    /**
     * 发起业主微信id
     */
    private Integer userId;

    /**
     *  标题
     */
    private String chatTitle;

    /**
     * 问题描述
     */
    private String content;

    /**
     * 发起时间
     */
    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;

    /**
     * 状态
     */
    private Integer state;

    @TableField(exist = false)
    private List<EstateChatImg> chatImgs;


    @TableField(exist = false)
    private List<EstateChatApply> chatApplies;


    @TableField(exist = false)
    private String nickName;

    @TableField(exist = false)
    private String faceUrl;

}
